Integrand size = 31, antiderivative size = 154 \[ \int \frac {(a+i a \tan (e+f x))^6}{(c-i c \tan (e+f x))^3} \, dx=-\frac {40 a^6 x}{c^3}+\frac {40 i a^6 \log (\cos (e+f x))}{c^3 f}+\frac {9 a^6 \tan (e+f x)}{c^3 f}+\frac {i a^6 \tan ^2(e+f x)}{2 c^3 f}-\frac {32 i a^6}{3 f (c-i c \tan (e+f x))^3}+\frac {40 i a^6}{c f (c-i c \tan (e+f x))^2}-\frac {80 i a^6}{f \left (c^3-i c^3 \tan (e+f x)\right )} \]
[Out]
Time = 0.19 (sec) , antiderivative size = 154, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {3603, 3568, 45} \[ \int \frac {(a+i a \tan (e+f x))^6}{(c-i c \tan (e+f x))^3} \, dx=\frac {i a^6 \tan ^2(e+f x)}{2 c^3 f}+\frac {9 a^6 \tan (e+f x)}{c^3 f}-\frac {80 i a^6}{f \left (c^3-i c^3 \tan (e+f x)\right )}+\frac {40 i a^6 \log (\cos (e+f x))}{c^3 f}-\frac {40 a^6 x}{c^3}+\frac {40 i a^6}{c f (c-i c \tan (e+f x))^2}-\frac {32 i a^6}{3 f (c-i c \tan (e+f x))^3} \]
[In]
[Out]
Rule 45
Rule 3568
Rule 3603
Rubi steps \begin{align*} \text {integral}& = \left (a^6 c^6\right ) \int \frac {\sec ^{12}(e+f x)}{(c-i c \tan (e+f x))^9} \, dx \\ & = \frac {\left (i a^6\right ) \text {Subst}\left (\int \frac {(c-x)^5}{(c+x)^4} \, dx,x,-i c \tan (e+f x)\right )}{c^5 f} \\ & = \frac {\left (i a^6\right ) \text {Subst}\left (\int \left (9 c-x+\frac {32 c^5}{(c+x)^4}-\frac {80 c^4}{(c+x)^3}+\frac {80 c^3}{(c+x)^2}-\frac {40 c^2}{c+x}\right ) \, dx,x,-i c \tan (e+f x)\right )}{c^5 f} \\ & = -\frac {40 a^6 x}{c^3}+\frac {40 i a^6 \log (\cos (e+f x))}{c^3 f}+\frac {9 a^6 \tan (e+f x)}{c^3 f}+\frac {i a^6 \tan ^2(e+f x)}{2 c^3 f}-\frac {32 i a^6}{3 f (c-i c \tan (e+f x))^3}+\frac {40 i a^6}{c f (c-i c \tan (e+f x))^2}-\frac {80 i a^6}{f \left (c^3-i c^3 \tan (e+f x)\right )} \\ \end{align*}
Time = 5.98 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.56 \[ \int \frac {(a+i a \tan (e+f x))^6}{(c-i c \tan (e+f x))^3} \, dx=\frac {i a^6 \left (-240 \log (i+\tan (e+f x))-54 i \tan (e+f x)+3 \tan ^2(e+f x)+\frac {16 \left (19 i+45 \tan (e+f x)-30 i \tan ^2(e+f x)\right )}{(i+\tan (e+f x))^3}\right )}{6 c^3 f} \]
[In]
[Out]
Time = 0.33 (sec) , antiderivative size = 139, normalized size of antiderivative = 0.90
method | result | size |
risch | \(-\frac {4 i a^{6} {\mathrm e}^{6 i \left (f x +e \right )}}{3 c^{3} f}+\frac {6 i a^{6} {\mathrm e}^{4 i \left (f x +e \right )}}{c^{3} f}-\frac {24 i a^{6} {\mathrm e}^{2 i \left (f x +e \right )}}{c^{3} f}+\frac {80 a^{6} e}{f \,c^{3}}+\frac {2 i a^{6} \left (10 \,{\mathrm e}^{2 i \left (f x +e \right )}+9\right )}{f \,c^{3} \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2}}+\frac {40 i a^{6} \ln \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}{f \,c^{3}}\) | \(139\) |
derivativedivides | \(\frac {9 a^{6} \tan \left (f x +e \right )}{c^{3} f}+\frac {i a^{6} \left (\tan ^{2}\left (f x +e \right )\right )}{2 c^{3} f}-\frac {40 a^{6} \arctan \left (\tan \left (f x +e \right )\right )}{f \,c^{3}}-\frac {20 i a^{6} \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{f \,c^{3}}+\frac {80 a^{6}}{f \,c^{3} \left (\tan \left (f x +e \right )+i\right )}-\frac {32 a^{6}}{3 f \,c^{3} \left (\tan \left (f x +e \right )+i\right )^{3}}-\frac {40 i a^{6}}{f \,c^{3} \left (\tan \left (f x +e \right )+i\right )^{2}}\) | \(147\) |
default | \(\frac {9 a^{6} \tan \left (f x +e \right )}{c^{3} f}+\frac {i a^{6} \left (\tan ^{2}\left (f x +e \right )\right )}{2 c^{3} f}-\frac {40 a^{6} \arctan \left (\tan \left (f x +e \right )\right )}{f \,c^{3}}-\frac {20 i a^{6} \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{f \,c^{3}}+\frac {80 a^{6}}{f \,c^{3} \left (\tan \left (f x +e \right )+i\right )}-\frac {32 a^{6}}{3 f \,c^{3} \left (\tan \left (f x +e \right )+i\right )^{3}}-\frac {40 i a^{6}}{f \,c^{3} \left (\tan \left (f x +e \right )+i\right )^{2}}\) | \(147\) |
norman | \(\frac {-\frac {40 a^{6} x}{c}-\frac {313 i a^{6}}{6 c f}-\frac {120 a^{6} x \left (\tan ^{2}\left (f x +e \right )\right )}{c}-\frac {120 a^{6} x \left (\tan ^{4}\left (f x +e \right )\right )}{c}-\frac {40 a^{6} x \left (\tan ^{6}\left (f x +e \right )\right )}{c}+\frac {41 a^{6} \tan \left (f x +e \right )}{c f}+\frac {289 a^{6} \left (\tan ^{3}\left (f x +e \right )\right )}{3 c f}+\frac {107 a^{6} \left (\tan ^{5}\left (f x +e \right )\right )}{c f}+\frac {9 a^{6} \left (\tan ^{7}\left (f x +e \right )\right )}{c f}-\frac {132 i a^{6} \left (\tan ^{2}\left (f x +e \right )\right )}{c f}-\frac {123 i a^{6} \left (\tan ^{4}\left (f x +e \right )\right )}{c f}+\frac {i a^{6} \left (\tan ^{8}\left (f x +e \right )\right )}{2 c f}}{c^{2} \left (1+\tan ^{2}\left (f x +e \right )\right )^{3}}-\frac {20 i a^{6} \ln \left (1+\tan ^{2}\left (f x +e \right )\right )}{f \,c^{3}}\) | \(248\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 163, normalized size of antiderivative = 1.06 \[ \int \frac {(a+i a \tan (e+f x))^6}{(c-i c \tan (e+f x))^3} \, dx=-\frac {2 \, {\left (2 i \, a^{6} e^{\left (10 i \, f x + 10 i \, e\right )} - 5 i \, a^{6} e^{\left (8 i \, f x + 8 i \, e\right )} + 20 i \, a^{6} e^{\left (6 i \, f x + 6 i \, e\right )} + 63 i \, a^{6} e^{\left (4 i \, f x + 4 i \, e\right )} + 6 i \, a^{6} e^{\left (2 i \, f x + 2 i \, e\right )} - 27 i \, a^{6} + 60 \, {\left (-i \, a^{6} e^{\left (4 i \, f x + 4 i \, e\right )} - 2 i \, a^{6} e^{\left (2 i \, f x + 2 i \, e\right )} - i \, a^{6}\right )} \log \left (e^{\left (2 i \, f x + 2 i \, e\right )} + 1\right )\right )}}{3 \, {\left (c^{3} f e^{\left (4 i \, f x + 4 i \, e\right )} + 2 \, c^{3} f e^{\left (2 i \, f x + 2 i \, e\right )} + c^{3} f\right )}} \]
[In]
[Out]
Time = 0.39 (sec) , antiderivative size = 246, normalized size of antiderivative = 1.60 \[ \int \frac {(a+i a \tan (e+f x))^6}{(c-i c \tan (e+f x))^3} \, dx=\frac {40 i a^{6} \log {\left (e^{2 i f x} + e^{- 2 i e} \right )}}{c^{3} f} + \frac {20 i a^{6} e^{2 i e} e^{2 i f x} + 18 i a^{6}}{c^{3} f e^{4 i e} e^{4 i f x} + 2 c^{3} f e^{2 i e} e^{2 i f x} + c^{3} f} + \begin {cases} \frac {- 4 i a^{6} c^{6} f^{2} e^{6 i e} e^{6 i f x} + 18 i a^{6} c^{6} f^{2} e^{4 i e} e^{4 i f x} - 72 i a^{6} c^{6} f^{2} e^{2 i e} e^{2 i f x}}{3 c^{9} f^{3}} & \text {for}\: c^{9} f^{3} \neq 0 \\\frac {x \left (8 a^{6} e^{6 i e} - 24 a^{6} e^{4 i e} + 48 a^{6} e^{2 i e}\right )}{c^{3}} & \text {otherwise} \end {cases} \]
[In]
[Out]
Exception generated. \[ \int \frac {(a+i a \tan (e+f x))^6}{(c-i c \tan (e+f x))^3} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 272 vs. \(2 (134) = 268\).
Time = 1.06 (sec) , antiderivative size = 272, normalized size of antiderivative = 1.77 \[ \int \frac {(a+i a \tan (e+f x))^6}{(c-i c \tan (e+f x))^3} \, dx=-\frac {2 \, {\left (-\frac {60 i \, a^{6} \log \left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}{c^{3}} + \frac {120 i \, a^{6} \log \left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + i\right )}{c^{3}} - \frac {60 i \, a^{6} \log \left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}{c^{3}} - \frac {3 \, {\left (-30 i \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 9 \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 61 i \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 9 \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 30 i \, a^{6}\right )}}{{\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 1\right )}^{2} c^{3}} + \frac {2 \, {\left (-147 i \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} + 930 \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 2421 i \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} - 3340 \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} - 2421 i \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 930 \, a^{6} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 147 i \, a^{6}\right )}}{c^{3} {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + i\right )}^{6}}\right )}}{3 \, f} \]
[In]
[Out]
Time = 6.17 (sec) , antiderivative size = 139, normalized size of antiderivative = 0.90 \[ \int \frac {(a+i a \tan (e+f x))^6}{(c-i c \tan (e+f x))^3} \, dx=\frac {9\,a^6\,\mathrm {tan}\left (e+f\,x\right )}{c^3\,f}-\frac {\frac {80\,a^6\,{\mathrm {tan}\left (e+f\,x\right )}^2}{c^3}-\frac {152\,a^6}{3\,c^3}+\frac {a^6\,\mathrm {tan}\left (e+f\,x\right )\,120{}\mathrm {i}}{c^3}}{f\,\left (-{\mathrm {tan}\left (e+f\,x\right )}^3-{\mathrm {tan}\left (e+f\,x\right )}^2\,3{}\mathrm {i}+3\,\mathrm {tan}\left (e+f\,x\right )+1{}\mathrm {i}\right )}+\frac {a^6\,{\mathrm {tan}\left (e+f\,x\right )}^2\,1{}\mathrm {i}}{2\,c^3\,f}-\frac {a^6\,\ln \left (\mathrm {tan}\left (e+f\,x\right )+1{}\mathrm {i}\right )\,40{}\mathrm {i}}{c^3\,f} \]
[In]
[Out]